/**
 * MIT License
 * Copyright (c) 2018 yadong.zhang
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */
package com.lf.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author yadong.zhang (yadong.zhang0415(a)gmail.com)
 * @website https://www.zhyd.me
 * @version 1.0
 * @date 2018/4/16 16:26
 * @since 1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Table(name="sys_user")
public class SysUser extends AbstractDO {

    @ApiModelProperty(value = "用户名")
    @Column(name = "username")
    private String username;

    @ApiModelProperty(value = "密码")
    @Column(name = "password")
    private String password;

    @ApiModelProperty(value = "昵称")
    @Column(name = "nickname")
    private String nickname;

    @ApiModelProperty(value = "手机号")
    @Column(name = "mobile")
    private String mobile;

    @ApiModelProperty(value = "邮箱")
    @Column(name = "email")
    private String email;

    @ApiModelProperty(value = "qq")
    @Column(name = "qq")
    private String qq;

    @ApiModelProperty(value = "生日")
    @Column(name = "birthday")
    private Date birthday;

    @ApiModelProperty(value = "性别")
    @Column(name = "gender")
    private Integer gender;

    @ApiModelProperty(value = "头像")
    @Column(name = "avatar")
    private String avatar;

    @ApiModelProperty(value = "用户类型，超级管理员、管理员、普通用户")
    @Column(name = "user_type")
    private String userType;

    @ApiModelProperty(value = "注册ip")
    @Column(name = "reg_ip")
    private String regIp;

    @ApiModelProperty(value = "最近登录ip")
    @Column(name = "last_login_ip")
    private String lastLoginIp;

    @ApiModelProperty(value = "最近登录时间")
    @Column(name = "last_login_time")
    private Date lastLoginTime;

    @ApiModelProperty(value = "登录次数")
    @Column(name = "login_count")
    private Integer loginCount;

    @ApiModelProperty(value = "备注")
    @Column(name = "remark")
    private String remark;

    @ApiModelProperty(value = "状态(0-正常,1-删除)")
    @Column(name = "status")
    private Integer status;

}
